package br.com.devschool.util;

import java.util.List;


/**
 * @author ATILLA
 *
 */
public interface GenericDAO<T extends BaseEntity> {

	public boolean save(T object) throws Exception;
	public boolean update(T object) throws Exception;
	public boolean merge(T object) throws Exception;
	public boolean delete(T object) throws Exception;
	public T findById(int pkey) throws Exception;
	public List<T> findAll() throws Exception;
	public int nextvalById() throws Exception;
}
